isLaunchedFromBubble

Indicates whether this activity is launched from a bubble. A bubble is a floating shortcut on the screen that expands to show an activity. If your activity can be used normally or as a bubble, you might use this method to check if the activity is bubbled to modify any behaviour that might be different between the normal activity and the bubbled activity. For example, if you normally cancel the notification associated with the activity when you open the activity, you might not want to do that when you're bubbled as that would remove the bubble.

Return

true if the activity is launched from a bubble.

See also

Compatibility behavior:

  • API 31 and above, this method matches platform behavior
  • API 29, 30, this method checks the window display ID
  • API 28 and earlier, this method is a no-op